#include "Factory.h"
#include "MotifFactory.h"
#include "WindowsFactory.h"

Factory* Factory::factory = NULL;

Factory* Factory::createFactory(PlatformType platform)
{
    if (!factory)
    {
        if (platform == MotifPlatform)
            factory = new MotifFactory();
        else
            factory = new WindowsFactory();
    }

    return factory;
}
